package com.bingxue.edu.management.shop.model.resp;

import com.bingxue.edu.common.enums.TermEnum;
import com.bingxue.edu.management.shop.model.entity.SellRecord;
import com.mybatisflex.annotation.RelationManyToOne;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "销售顾问业绩返回信息")
@TableRef(SellRecord.class)
public class SellRecordResp extends SellRecord {

    @Schema(description = "销售顾问名称")
    @RelationManyToOne(selfField = "sellerId",targetTable = "base_employee",targetField = "id",valueField = "name")
    private String sellerName;

    @Schema(description = "学生姓名")
    @RelationManyToOne(selfField = "studentId",targetTable = "edu_student",targetField = "id",valueField = "name")
    private String studentName;

    @Schema(description = "校区名称")
    @RelationManyToOne(selfField = "campusId",targetTable = "base_org",targetField = "id",valueField = "name")
    private String campusName;

    @Schema(description = "班级名称")
    private String className;

    @Schema(description = "教学年份")
    private Integer classYear;

    @Schema(description = "学期")
    private TermEnum term;

    @Schema(description = "年级")
    private String grade;

    @Schema(description = "科目")
    private String subject;

}
